package com.softeem.swaggerdemo.controller.order;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author mrchai 2020/10/12 16:24
 */
@Api(value = "订单管理",description = "订单详情，以及订单操作:取消,修改等")
@RestController
public class OrderController {

    @ApiOperation(value="订单列表",notes = "显示所有订单列表信息")
    @GetMapping("/list")
    public String list(){
        System.out.println("显示所有订单");
        return "list";
    }

    @ApiOperation(value="订单列表",notes = "显示所有订单列表信息")
    @GetMapping("/details/{no}")
    public String details(@PathVariable("no") String orderNo){
        System.out.println("显示所有订单");
        return "list";
    }

}
